package cn.mickey.exchange.mapper;

import cn.mickey.exchange.domain.model.UserModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

// 使用缓存
//@CacheNamespace(implementation= RedisCache.class,eviction=RedisCache.class)
@Mapper
public interface UserMapper extends BaseMapper<UserModel> {

    UserModel getUserByAccount(String account);

    Integer addUser(UserModel user);

    Integer amountOfUsers();

    List<Map<String,Object>> pageListUserInfos(Map<String,Object> params);

    UserModel getUserById(Long userId);


}
